@layout("/backend/common/_containerForHis.html"){
<style>
    .table {
        table-layout: fixed;
    }

    table#queryCon td {
        padding-left: 10px
    }

    #queryCon {
        margin-left: -10px;
    }

    .dhcc-con button {
        margin-bottom: 0px;
    }

    #classifyInfoDiv .fixed-table-body {
        margin-right: -1px;
    }

    .panel {
        padding-left: 0px;
        padding-right: 0px;
        padding-bottom: 1px;
    }

    .hisui-panel {
        overflow: hidden;
    }

    .oeLBStyle, .rbLBStyle, .emLBStyle, .diagLBStyle, .labLBStyle, .preLBStyle, .opLBStyle, .classfyLBStyle {
        border-radius: 4px !important;

    }

    .oeLBStyle .layui-layer-title, .rbLBStyle .layui-layer-title, .emLBStyle .layui-layer-title, .diagLBStyle .layui-layer-title, .labLBStyle .layui-layer-title, .preLBStyle .layui-layer-title, .opLBStyle .layui-layer-title, .classfyLBStyle .layui-layer-title {
        border-radius: 4px 4px 0 0;
    }

    .oeLBStyle .layui-layer-content, .rbLBStyle .layui-layer-content, .emLBStyle .layui-layer-content, .diagLBStyle .layui-layer-content, .labLBStyle .layui-layer-content, .preLBStyle .layui-layer-content, .opLBStyle .layui-layer-content, .classfyLBStyle .layui-layer-content {
        border-radius: 0 0 4px 4px;
    }

    .layui-layer-setwin a {
        color: #fff;
    }

    .fixed-table-container {
        border-top: 1px solid #ddd;
        border-bottom: 1px solid #ddd;
        border-right: 0px solid #ddd;
        border-left: 0px solid #ddd;
    }
</style>
<div style="width:100%;">
    <#Hidden id="depart" value="${locId!}"/>
    <#Hidden id="area" value="${wardId!}"/>
    <#Hidden id="userId" value="${userId!}"/>
    <#Hidden id="userName" value="${userName!}"/>
    <#Hidden id="role" value="${Role!}"/>
    <#Hidden id="hisWebIp" value="${hisWebIp!}"/>
    <#Hidden id="type" value="${type!}"/>
    <#Hidden id="enableIPQC" value="${enableIPQC!}"/>
    <div class="hisui-panel" title="病例列表" data-options="headerCls:'panel-header-gray',iconCls:'icon-paper'">
        <div>
            <table id="queryCon" style="border-collapse:separate; border-spacing:10px;">
                <tr>
                    <!-- 判断是否启用过程质控模块，如启用则增加在院患者查询-->
                    <td class='' for="searchType">查询类型</td>
                    <td>
                        <select id="searchType" class="hisui-combobox textbox" name="searchType" data-options="editable:false">
                            <option value="1">出院患者</option>
                            @if(enableIPQC=="Y"){
                            <option value="2">在院患者</option>
                            @}
                        </select>
                    </td>
                    <td class='' for="name">患者姓名</td>
                    <td>
                        <input class="textbox" id="name"/>
                    </td>
                    <td class='' for="mrNum">病案号</td>
                    <td>
                        <input class="textbox" id="mrNum"/>
                    </td>
                    <td class='' for="admDoctorName">主管医生</td>
                    <td>
                        <input class="textbox" id="admDoctorName"/>
                    </td>
                    <td>
                        <input class='hisui-radio' type="radio" name='paDocDepart' value='depart' checked="checked">本科室患者
                    </td>
                    <td>
                        <input class='hisui-radio' type="radio" name='paDocDepart' value='doc'>本人患者
                    </td>
                </tr>
                <tr>
                    <!-- 查询类型 -->
                    <td class='' for="formStatus">在组状态</td>
                    <td>
                        <select id="formStatus" class="hisui-combobox textbox" name="formStatus" data-options="editable:false">
                            <option value="">全部</option>
                            <option value="1">已入组</option>
                            <option value="2">未入组</option>
                            <option value="3">已排除</option>
                        </select>
                    </td>
                    <td class='' for="entityId">病种名称</td>
                    <td>
                        <select id="entityId" class="hisui-combobox textbox" name="entityId" data-options="editable:false">
                            <option value="">全部</option>
                        </select>
                    </td>
                    <td class=' date' for="startDate">开始日期</td>
                    <td class="date">
                        <input id="startDate" class="hisui-datebox textbox"></input>
                    </td>
                    <td class=' date' for="endDate">结束日期</td>
                    <td class="date">
                        <input id="endDate" class="hisui-datebox textbox"></input>
                    </td>
                    <td>
                        <#Button name="查询" icon="fa fa-search" clickFun="SdsPatientList.search()" />
                        <#Button name="清空" icon="fa fa-times-circle-o" clickFun="SdsPatientList.clear()" />
                    </td>
                </tr>
            </table>
        </div>
        <#Table id="patientListTable" style="width:2170px;"/>
    </div>
</div>
<script src="${ctxPath}/static/backend/sds/docapi/sdspatientlist.js"></script>
@}